package com.action.workcall;
import com.db.workcall.*;

public class ContentAction {
	private int no;
	private WorkCallVO vo;	
	private int kind;
	private WorkCallDAO callDAO;
	
	public void setCallDAO(WorkCallDAO callDAO) {
		this.callDAO = callDAO;
	}

	public int getKind() {
		return kind;
	}

	public void setKind(int kind) {
		this.kind = kind;
	}

	public WorkCallVO getVo() {
		return vo;
	}

	public void setNo(int no) {
		this.no = no;
	}
	
	public String execute() throws Exception{
		System.out.println(kind);
		
		if(kind==2)
			vo=callDAO.sendContent(no);
		else if(kind==3||kind==4)
			vo=callDAO.getContent(no);
					
		return "success";
	}
}
